/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.resource.entity;

import com.lczyfz.istep.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 课件管理Entity
 * @author dh
 * @version 2017-01-16
 */
public class ResourceCourseware extends DataEntity<ResourceCourseware> {
	
	private static final long serialVersionUID = 1L;
	private String coursewareName;		// 课件名称
	private String environmentId;		// 关联教学实验环境id
	private String coursewareAttribute;		// 课件属性
	private String label;		// 标签
	private String submitResult;		// 是否提交结果
	private String document;		// 实验文档
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间

	//补充字段:课件是否被课程选择
	private String isChoose;

	private String courseId;	 			// 课件id
	private String name;	 				// 学生姓名
	private int learnProgress;	 		// 学习进度
	private String environmentName;		// 关联教学实验环境名称

	public String getIsChoose() {
		return isChoose;
	}

	public void setIsChoose(String isChoose) {
		this.isChoose = isChoose;
	}



	public ResourceCourseware() {
		super();
	}

	public ResourceCourseware(String id){
		super(id);
	}

	@Length(min=1, max=64, message="课件名称长度必须介于 1 和 64 之间")
	public String getCoursewareName() {
		return coursewareName;
	}

	public void setCoursewareName(String coursewareName) {
		this.coursewareName = coursewareName;
	}
	
	@Length(min=0, max=64, message="关联教学实验环境id长度必须介于 0 和 64 之间")
	public String getEnvironmentId() {
		return environmentId;
	}

	public void setEnvironmentId(String environmentId) {
		this.environmentId = environmentId;
	}
	
	@Length(min=1, max=4, message="课件属性长度必须介于 1 和 4 之间")
	public String getCoursewareAttribute() {
		return coursewareAttribute;
	}

	public void setCoursewareAttribute(String coursewareAttribute) {
		this.coursewareAttribute = coursewareAttribute;
	}
	
	@Length(min=0, max=64, message="标签长度必须介于 0 和 64 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@Length(min=1, max=4, message="是否提交结果长度必须介于 1 和 4 之间")
	public String getSubmitResult() {
		return submitResult;
	}

	public void setSubmitResult(String submitResult) {
		this.submitResult = submitResult;
	}

	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLearnProgress() {
		return learnProgress;
	}

	public void setLearnProgress(int learnProgress) {
		this.learnProgress = learnProgress;
	}

	public String getDocument() {
		return document;
	}

	public void setDocument(String document) {
		this.document = document;
	}

	public String getEnvironmentName() {
		return environmentName;
	}

	public void setEnvironmentName(String environmentName) {
		this.environmentName = environmentName;
	}
}